
//******************************* Armstrong Number ***************************

#include<stdio.h>
#include<conio.h>

void main()
{
	int n, m, a, s = 0;
	clrscr();

	printf("\n\n\t\tEnter any no. ");
	scanf("%d",&n);

	m = n;

	while(n > 0)
	{
		a = n % 10;
		s = s + a * a * a;
		n = n / 10;
	}

	if(m == s)
		printf("\n\n\t\t%d is an Armstrong Number.", m);

	else
		printf("\n\n\t\t%d is Not an Armstrong Number.", m);

getch();
}
